<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Resultado da tabuada de ${multiplicando}</title>
</head>
<body>
	<h1>Tabuada de ${multiplicando}</h1>
	<div>
		<table>
			<c:forEach var="multiplicador" items="${multiplicadores}">
				<tr>
					<td>${multiplicando}</td>
					<td>X</td>
					<td>${multiplicador}</td>
					<td>=</td>
					<td><c:out value="${multiplicando*multiplicador}" /></td>
				</tr>
			</c:forEach>
		</table>
	</div>
	<br />
	<br />
	<div>
		<form method="post"
			action="<c:url value="/exercicio1/multiplicacao"/>">
			<label> Ver tabuada de outro número </label> <input type="text"
				name="multiplicando" id="multiplicando" /> <input type="submit"
				value="Ver tabuada" />
		</form>
	</div>
</body>
</html>